<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>药品验收</title>
</head>
<body>
	<div style="height: 100%; width: 100%">
		<div style="padding: 20px">验收药品</div>
		<table style="height: 30%; width: 100%">
			<tr>
				<td style="padding-left: 20px"><span>验收批号*</span> <input
					class="easyui-textbox"
					data-options="readonly:true,prompt:'H123',width:164"></td>
				<td><span>验收人: </span> <select class="easyui-combotree"
					style="width: 200px;"
					data-options="url:'getDrugInventoryData_name',
								required:true,editable:true,method:'get',panelHeight:'auto',prompt:'张劲松'"></select></td>
				</td>
			</tr>
			<tr>
				<td style="padding-left: 20px"><span>验收日期：</span> <input
					class="easyui-datebox" required="true" data-options="width:100">
				</td>
				<td><span>验收总价：</span> <input class="easyui-textbox"
					data-options="prompt:'0.00',width:230"></td>
			</tr>
			<tr>
				<td></td>
				<td style="padding-left: 218px"><a class="easyui-linkbutton"
					data-options="iconCls:'icon-tip'" id="checkDrug">开始验收</a></td>
			</tr>
		</table>

		<div id="check_drug_win">
			<table style="height: 80%; width: 100%" id="drug_check_table"></table>
			<div style="height: 20%; width: 100%">
				<table style="height: 100%; width: 100%">
					<tr>
						<td><span>验收药房:</span> <select id="cc"
							class="easyui-combotree" style="width: 200px;"
							data-options="url:'getSomeDrug',required:true,method:'get',panelHeight:'auto'"></select></td>
						<td>
							
						</td>
						</tr>
				</table>
			</div>
		</div>
	</div>
	<script>
		$(function() {
			$('#drug_check_table').datagrid({
				rownumbers : true,
				remoteSort : false,
				nowrap : false,
				fitColumns : true,
				method : 'get',
				url : 'getSomeData1',
				columns : [ [ {
					field : 'drug_name',
					title : '药品名',
					width : 150,
					sortable : true
				}, {
					field : 'drug_item_price',
					title : '单价',
					width : 80,
					align : 'right',
					sortable : false
				}, {
					field : 'drug_danwei',
					title : '单位',
					width : 80,
					align : 'right',
					sortable : false
				}, {
					field : 'drug_note',
					title : '药品备注',
					width : 60,
					align : 'center',
					sortable : false
				} ] ],
				groupField : 'product_name',
				view : groupview,
				groupFormatter : function(value, rows) {
					return value + ' - ' + rows.length + ' Item(s)';
				}
			});

			$('#check_drug_win').panel({
				width : 500,
				height : 350,
				title : '验收药品',
				closed : true,
				closable : true,
				style : {
					position : 'absolute',
					left : 260,
					top : 50
				}
			});
			$("#checkDrug").linkbutton({
				onClick : function() {
					$("#check_drug_win").panel('open');
				}
			});
		});
	</script>
</body>
</html>